{% extends 'base.html' %}

{% block keywords %}
<meta name="keywords" content="深圳大学,深大,荔园,学子天地" />
{% endblock %}

{% block description %}
<meta name="description" content="深圳大学学子天地是深大最大的校园传媒网站，致力于为荔园学子提供有价值的资讯和服务。" />
{% endblock %}

{% block htmlhead %}
    {% load html_tools %}
    {{ 'plugins/basic-jquery-slider.js' | as_js }}
    {{ 'homepage.css' | as_css }}
    {{ 'basic-jquery-slider.css' | as_css }}
{% endblock %}

{% load py_utils %}

{% block content %}
<div class="central">

	<div class="content">

		<div class="cont_headline">
			<h2>焦点</h2>
			{% for article in important_articles %}
			<a href="{% url 'articles:display' article.pk %}">
				<div class="cont_headline_entry">
					<div class="headline_pic"><img src="{{ article.cover }}" width=180 height=120 ></div>
					<h3>{{ article.title | truncatechars:19  }}</h3>
					<p>{{ article.summary }}</p>
				</div>
			</a>
			{% endfor %}
		</div><!--end of cont_headline-->

		<div class="cont_articles">
			{% for category, article_list in article_dict %}
			<div class="articles_list {% cycle 'mgright' '' %}">
				<h2>{{ category }}</h2>
				<a class="articles_list_more" href="{% url 'articles:list' category.english_name %}">更多…</a>
				<ul>
					{% for article in article_list %}
						{% if forloop.first %}
						<a href="{% url 'articles:display' article.pk %}">
							{{ article.title | truncatechars:20 }}
							<p>{{ article.summary | truncatechars:45 }}</p>
						</a>
						{% else %}
						<a href="{% url 'articles:display' article.pk %}">
							{{ article.title | truncatechars:20  }}
						</a>
						{% endif %}
					{% endfor %}
				</ul>
			</div>
			{% endfor %}
		</div><!--end of cont_articles-->

		<div class="co_media">
			<h2>合作媒体</h2>
			<a href="{% url 'magazine:list' 'szuyouth'%}">
				<div class="co_media_box">
					<div class="co_media_logo"><img src="/static/images/szuyouth.png" height="130px" width="310px" /></div>
					<h3>深大青年杂志社</h3>
					<p>
						在这里，你可以了解荔园的资讯，<br />
						在这里，你可以知晓明星师生背后的点点滴滴，<br />
						在这里，你可以分享自己对热点动态的独特视角，<br />
						在这里，你可以品读文学，阐释经典，解读行走，<br />
						在这里，读懂深大。<br />
					</p>
				</div>
			</a>
			<a href="{% url 'magazine:list' 'langtaosha'%}">
				<div class="co_media_box">
					<div class="co_media_logo"><img src="/static/images/langtaosha.png" height="130px" width="310px" /></div>
					<h3>浪淘沙文学社</h3>
					<p>
						假如现实世界残酷分崩离析，至少还有文字可以温暖彼此。
					</p>
				</div>
			</a>
		</div><!--end of co_media-->

	</div><!--end of content-->

	<div class="sidebar">
<!-- 		<div class="widget">
			<h2>信息中心</h2><a class="widget_more" href="">更多…</a>
			<div class="widget_content">
				<ul>
					<li><a href="">title</a></li>
				</ul>
			</div>
		</div> -->
		<div class="widget">
			<h2>讲座预告</h2><a class="widget_more" href="{% url 'lecture:index' %}">更多…</a>
			<div class="widget_content">
				<ul class="widget_content_list">
					{% for lecture in lecture_list %}
					<li>
						{% if lecture.url_id %}
						<a href="http://www.szu.edu.cn/board/view.asp?id={{ lecture.url_id }}" target="_blank">
							{{ lecture.title | truncatechars:18 }}
						</a>
						{% else %}
						<a href="{% url 'lecture:index' %}" target="_blank">
							{{ lecture.title | truncatechars:18 }}
						</a>
						{% endif %}
					</li>
					{% endfor %}
				</ul>
			</div>
		</div>
<!--		<div class="widget">
			<h2>活动预告</h2><a class="widget_more" href="{% url 'activity:index' %}">更多…</a>
			<div class="widget_content">
				<ul>
					{% for activity in activity_list %}
					<li>
						<a href="">
							{{ activity.title | truncatechars:18 }}
						</a>
					</li>
					{% endfor %}
				</ul>
			</div>
		</div>-->

		<div class="widget">
			<h2>最新评论</h2>
			<div class="widget_content">
				<ul class="ds-recent-comments"></ul>
			</div>
		</div>

		<div class="widget">
			<h2>最近访客</h2>
			<div class="widget_content">
				<ul class="ds-recent-visitors"></ul>
			</div>
		</div>

		<div class="widget">
			<h2>合作社团</h2>
			<div class="widget_content">
				<ul class="widget_co_league">
					<a href="{% url 'magazine:list' 'langtaosha'%}" target="_blank">浪淘沙文学社</a>
					<a href="{% url 'magazine:list' 'szuyouth'%}" target="_blank">深大青年杂志社</a>
					<a href="{% url 'szuspeech:index' %}" target="_blank">深大演讲</a>
				</ul>
			</div>
		</div>

		<div class="widget">
			<ul class="widget_banner">
				<li><a href="http://192.168.2.113/" target="_blank" title="点击进入深圳大学铁路订票系统"><img src="/static/images/banner/train.gif" width="290px" height="155px" /></a></li>
				<li><a href="http://stu.szu.edu.cn:5000" target="_blank" title="点击进入场地申请系统"><img src="/static/images/banner/cdsq.gif" width="290px" height="155px" /></a></li>
			</ul>
		</div>

		<!--<div class="widget">
			<h2>公文通</h2>
			<div class="widget_content">
				<ul>
					<iframe src="http://www.szu.edu.cn/board/mylist.asp?ptime=0&fsize=14&top=8" height="360px" width="310px;" name="frmmails" frameborder="0" scrolling="yes"></iframe>
				</ul>
			</div>
		</div>-->


	</div><!--end of sidebar-->
</div><!--end of central-->

<!-- Duoshuo BEGIN -->
<script type="text/javascript">
var duoshuoQuery = {short_name:"szustu"};
	(function() {
		var ds = document.createElement('script');
		ds.type = 'text/javascript';ds.async = true;
		ds.src = 'http://static.duoshuo.com/embed.js';
		ds.charset = 'UTF-8';
		(document.getElementsByTagName('head')[0] 
		|| document.getElementsByTagName('body')[0]).appendChild(ds);
	})();
</script>
<!-- Duoshuo END -->
{% endblock %}
